//
//  SDSeedViewController.swift
//  Seed
//
//  Created by Samuel on 2017/6/5.
//  Copyright © 2017年 RedSoft. All rights reserved.
//

import UIKit

class SDSeedViewController: YMBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        configUI()
    }
    
    func configUI(){
        // Do any additional setup after loading the view.
        
        let titleView = UIButton.init(frame: CGRect.init(x: 0, y: 0, width: 120, height: 20))
        titleView.setImage(#imageLiteral(resourceName: "course_selected"), for: .normal)
        titleView.setTitle("Seed·学习", for: .normal)
        titleView.setTitleColor(YMGlobalRedColor(), for: .normal)
        titleView.titleEdgeInsets = UIEdgeInsetsMake(0, 8, 0, 0)
        titleView.isUserInteractionEnabled = false
        self.navigationItem.titleView = titleView
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(image: #imageLiteral(resourceName: "listening"), style: .plain, target: self, action: #selector(listenClick))
    }
    
    //#MARK: Private Method
    func listenClick() {
        
    }

}
